import { app, shell } from "electron";
//https://www.electronjs.org/docs/api/menu-item
export const menutemplate = [
  {
    label: "文件", // 一级标题
    submenu: [
      // 二级标题
      {
        label: "新建文件",
        accelerator: "ctrl+n",
        submenu: [
          // 三级标题
          {
            label: "HTML文件",
          },
          {
            label: "JS文件",
          },
          {
            label: "CSS文件",
          },
        ],
        click: () => {},
      },
      {
        label: "当前窗口切换至全屏模式",
        accelerator: "CommandOrControl+A",
        // role: "togglefullscreen",
        click: () => {},
      },
      {
        label: "刷新",
        accelerator: "CommandOrControl+r",
        // role: "reload",
        click: () => {},
      },
    ],
  },
];
